package miracle.joker.design.builder;

public class ComputerBuilder {
    private Computer computer;
    public ComputerBuilder(){
       computer = new Computer();
    }

    public ComputerBuilder setCPU(String CPU) {
        computer.setCPU(CPU);
        return this;
    }

    public ComputerBuilder setRAM(String RAM) {
        computer.setRAM(RAM);
        return this;
    }

    public ComputerBuilder setStorage(String storage) {
        computer.setStorage(storage);
        return this;
    }

    public ComputerBuilder setGPU(String GPU) {
        computer.setGPU(GPU);
        return this;
    }

    public Computer build() {
        return computer;
    }
}
